﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Nate_sRoguelikeGameXNA.GameObjects
{
    class GameObject
    {
        private MapBlock _mapBlock;
        public MapBlock MapBlock
        {
            get { return _mapBlock; }
            set {
                if (value == null)
                    return;
                if (_mapBlock != null)
                    _mapBlock.RemoveObject(this);

                _mapBlock = value;
                _mapBlock.AddObject(this);
            }
        }

        public virtual char DisplayCharacter { get; set; }
        public Color DisplayColor { get; set; }
        public int ZIndex { get; set; }
    }
}
